

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="panel-heading">
        <ul class="nav nav-tabs" >
            <li class="active"><a href="#tab0" data-toggle="tab" >庫存不足通知</a></li>
            <li class=""><a href="#tab1" data-toggle="tab">製令單工序到站出站通知</a></li>
            <li><a href="#tab2" data-toggle="tab">環境溫濕度通知</a></li>
            <li><a href="#tab3" data-toggle="tab">馬達不運轉通知</a></li>
            <li><a href="#tab4" data-toggle="tab">監控感測器問題通知</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div class="tab-content">
            <div class="tab-pane fade active in" id="tab0" style="">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Kc_tzpl')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <select  id="c-kc_tzpl" data-rule="required" class="form-control selectpicker" name="row[kc_tzpl]">
                            {foreach name="kcTzplList" item="vo"}
                            <option value="{$key}" {in name="key" value="$row.kc_tzpl"}selected{/in}>{$vo}</option>
                            {/foreach}
                        </select>

                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Kc_tztime')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-kc_tztime" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-use-current="true" name="row[kc_tztime]" type="text" value="{$row.kc_tztime}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Kc_tzswitch')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <input  id="c-kc_tzswitch" name="row[kc_tzswitch]" type="hidden" value="{$row.kc_tzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-kc_tzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.kc_tzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('周末不通知')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <input  id="c-kc_zmtzswitch" name="row[kc_zmtzswitch]" type="hidden" value="{$row.kc_zmtzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-kc_zmtzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.kc_zmtzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Kc_notifyusers')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-kc_notifyusers" data-rule="" data-source="auth/admin/index2" data-multiple="true" style="display:block;" data-primary-key="id" data-field="nickname" class="form-control selectpage" name="row[kc_notifyusers]" type="text" value="{$row.kc_notifyusers}">
                    </div>
                </div>

            </div>

            <div class="tab-pane fade  " id="tab1" style="">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Zld_notifyusers')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-zld_notifyusers" data-rule="" data-source="auth/admin/index2" data-multiple="true" style="display:block;" data-primary-key="id" data-field="nickname" class="form-control selectpage" name="row[zld_notifyusers]" type="text" value="{$row.zld_notifyusers}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Zld_tzpx')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <div class="checkbox">
                            {foreach name="zldTzpxList" item="vo"}
                            <label for="row[zld_tzpx][]-{$key}"><input id="row[zld_tzpx][]-{$key}" name="row[zld_tzpx][]" type="checkbox" value="{$key}" {in name="key" value="$row.zld_tzpx"}checked{/in} /> {$vo}</label>
                            {/foreach}
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Zld_tzswitch')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <input  id="c-zld_tzswitch" name="row[zld_tzswitch]" type="hidden" value="{$row.zld_tzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-zld_tzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.zld_tzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>

                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('周末不通知')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <input  id="c-zld_zmtzswitch" name="row[zld_zmtzswitch]" type="hidden" value="{$row.zld_zmtzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-zld_zmtzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.zld_zmtzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

            </div>

            <div class="tab-pane fade " id="tab2" style="">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wsd_notifyusers')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-wsd_notifyusers" data-rule="" data-source="auth/admin/index2" data-multiple="true" style="display:block;" data-primary-key="id" data-field="nickname" class="form-control selectpage" name="row[wsd_notifyusers]" type="text" value="{$row.wsd_notifyusers}">

                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wsd_tzswitch')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <input  id="c-wsd_tzswitch" name="row[wsd_tzswitch]" type="hidden" value="{$row.wsd_tzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-wsd_tzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.wsd_tzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('周末不通知')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <input  id="c-wsd_zmtzswitch" name="row[wsd_zmtzswitch]" type="hidden" value="{$row.wsd_zmtzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-wsd_zmtzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.wsd_zmtzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wsd_lxwd')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-wsd_lxwd" data-rule="required" class="form-control" name="row[wsd_lxwd]" type="number" min="0" max="50" value="{$row.wsd_lxwd}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wsd_wdfw')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-wsd_wdfw" data-rule="required" class="form-control" name="row[wsd_wdfw]" min="0" max="10" type="number" value="{$row.wsd_wdfw}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wsd_lxsd')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-wsd_lxsd" data-rule="required" class="form-control" name="row[wsd_lxsd]" min="0" max="100" type="number" value="{$row.wsd_lxsd}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wsd_sdfw')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-wsd_sdfw" data-rule="required" class="form-control" name="row[wsd_sdfw]" min="0" max="50" type="number" value="{$row.wsd_sdfw}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wsd_cxsj')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-wsd_cxsj" data-rule="required" class="form-control" name="row[wsd_cxsj]" min="0" max="60" type="number" value="{$row.wsd_cxsj}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Wsd_tzpl')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <select  id="c-wsd_tzpl" data-rule="required" class="form-control selectpicker" name="row[wsd_tzpl]">
                            {foreach name="wsdTzplList" item="vo"}
                            <option value="{$key}" {in name="key" value="$row.wsd_tzpl"}selected{/in}>{$vo}</option>
                            {/foreach}
                        </select>

                    </div>
                </div>
            </div>

            <div class="tab-pane fade " id="tab3" style="">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Md_notifyusers')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-md_notifyusers" data-rule="" data-source="auth/admin/index2" data-multiple="true" style="display:block;" data-primary-key="id" data-field="nickname" class="form-control selectpage" name="row[md_notifyusers]" type="text" value="{$row.md_notifyusers}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Md_tzswitch')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <input  id="c-md_tzswitch" name="row[md_tzswitch]" type="hidden" value="{$row.md_tzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-md_tzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.md_tzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('周末不通知')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input  id="c-md_zmtzswitch" name="row[md_zmtzswitch]" type="hidden" value="{$row.md_zmtzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-md_zmtzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.md_zmtzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Md_tzpl')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <select  id="c-md_tzpl" data-rule="required" class="form-control selectpicker" name="row[md_tzpl]">
                            {foreach name="mdTzplList" item="vo"}
                            <option value="{$key}" {in name="key" value="$row.md_tzpl"}selected{/in}>{$vo}</option>
                            {/foreach}
                        </select>

                    </div>
                </div>

            </div>

            <div class="tab-pane fade " id="tab4" style="">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Jkgc_notifyusers')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-jkgc_notifyusers" data-rule="" data-source="auth/admin/index2" data-multiple="true" style="display:block;" data-primary-key="id" data-field="nickname" class="form-control selectpage" name="row[jkgc_notifyusers]" type="text" value="{$row.jkgc_notifyusers}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Jkgc_tzswitch')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input  id="c-jkgc_tzswitch" name="row[jkgc_tzswitch]" type="hidden" value="{$row.jkgc_tzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-jkgc_tzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.jkgc_tzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('周末不通知')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input  id="c-jkgc_zmtzswitch" name="row[jkgc_zmtzswitch]" type="hidden" value="{$row.jkgc_zmtzswitch}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-jkgc_zmtzswitch" data-yes="1" data-no="0" >
                            <i class="fa fa-toggle-on text-success {eq name="$row.jkgc_zmtzswitch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('Jkgc_tzpl')}:</label>
                    <div class="col-xs-12 col-sm-8">

                        <select  id="c-jkgc_tzpl" data-rule="required" class="form-control selectpicker" name="row[jkgc_tzpl]">
                            {foreach name="jkgcTzplList" item="vo"}
                            <option value="{$key}" {in name="key" value="$row.jkgc_tzpl"}selected{/in}>{$vo}</option>
                            {/foreach}
                        </select>

                    </div>
                </div>

            </div>

        </div>

    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>

</form>


